﻿namespace JobButenko.Models.BusinessLogicLayer
{
    using System.Collections.Generic;
    using System.Linq;

    public class SalaryRepository
    {
        private readonly JobDataContext dataContext;

        public SalaryRepository(JobDataContext dataContext)
        {
            this.dataContext = dataContext;
        }

        public IEnumerable<Salary> GetSalary()
        {
            return this.dataContext.Salaries.OrderBy(salary => salary.SalaryId);
        }
    }
}